<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    <a href="{% url 'suo' %}">过滤</a>
    <table border="1">
        <tr>
            <td>编号</td>
            <td>姓名</td>
            <td>事由</td>
            <td>状态</td>
            <td>类型</td>
            <td style="text-align: center">操作</td>
        </tr>
        {% for i in now %}
            <tr>
                <td>{{ i.id }}</td>
                <td>{{ i.name }}</td>
                <td>{{ i.reason }}</td>
                <td>{{ i.state }}</td>
                <td>{{ i.stype.tname }}</td>
                <td><a href="{% url 'delsh' i.id %}">通过</a>
                    <a href="{% url 'hoot' i.id %}">不通过</a>
                </td>
            </tr><br>
        {% endfor %}
    </table>
{% if now.number > 1 %}
    <a href="{% url 'shower' %}?page={{ last }}">上一页</a>
{% endif %}
<b>当前页&nbsp;&nbsp; 第{{ now.number }}页</b>
{% if now.number < max %}
    <a href="{% url 'shower' %}?page={{ next }}">下一页</a>
{% endif %}

</form>
</body>
</html>